const BaseDto = require("./base.dto");
// 角色模块实体
module.exports = {
  // 更新角色菜单
  updatePermDto: {
    roleId: {
      required: true,
      comment: "角色ID",
    },
    menuIds: {
      required: true,
      comment: "菜单ID",
    }
  },
  // 创建
  createDto: {
    roleName: {
      required: true,
      comment: "角色名称",
    },
    roleKey: {
      required: true,
      comment: "角色标识",
    },
    status: {
      comment: "角色状态",
    },

  },
  // 编辑
  editDto: {
    id: {
      required: true,
      comment: "角色ID",
    },
    roleName: {
      comment: "角色名称",
    },

    status: {
      comment: "角色状态",
    },
  },
  // 分页列表
  pageDto: {
    ...BaseDto.pageDto,
    keyword: {
      comment: "关键字搜索，roleName、roleKey",
    },
    status: {
      comment: "角色状态",
    },
  },
  // 删除
  delDto: {
    id: {
      required: true,
      comment: "角色ID",
    },
  },
};
